# set the proper environment for starting an process
# that uses SVNJ.  Save actual invocation for another
# process

BASEDIR=`dirname $0`
LIB=$BASEDIR/native
SVN_HOME=${SVN_HOME:=$HOME/local-1.7}
export LD_LIBRARY_PATH=$SVN_HOME/lib:$LIB

# grab all jars in compile-lib/...
for i in `ls $BASEDIR/compile-lib` ; do
  CLASSPATH=$BASEDIR/compile-lib/$i:$CLASSPATH
done
CLASSPATH=$BASEDIR:$CLASSPATH:$BASEDIR/web/WEB-INF/classes:$BASEDIR/dav-src

VMARGS="-Djava.library.path=$LD_LIBRARY_PATH"

